package com.epfresh.supplier.entity;

import java.util.List;

/**
 * Created by zhaozhenqiang on 2018/5/16.
 */

public class JoinStoreListBean {


    /**
     * id : 1
     * type : null
     * store_id : 85
     * merchant_id : 1
     * center_name : 天天鲜北环
     * product_id : 12211
     * price : 1
     * status : 1
     * create_time : 2018-05-16 15:49:12
     * cnt : 3
     * updatePriceAuth : true
     * productInfo : {"tags":[],"storeName":"天天鲜北环","species":null,"modifiedTime":"2018-01-08 17:56:17","origin":null,"moq":1,"pack":"","type":1,"packageContainer":"散货","variety":null,"packageSize":1,"id":12211,"title":"新疆葡萄干16","level":null,"thumbnail":null,"price":"¥1.0/斤","originalPrice":1,"inventory":null,"merchantId":1,"incr":1,"packageUnit":"斤","storeId":4,"chargeUnit":"斤","priceOnly":1}
     */


    boolean isHeader;
    boolean isFooter;
    boolean isShow;

    public boolean isHeader() {
        return isHeader;
    }

    public void setHeader(boolean header) {
        isHeader = header;
    }

    public boolean isFooter() {
        return isFooter;
    }

    public void setFooter(boolean footer) {
        isFooter = footer;
    }

    public boolean isShow() {
        return isShow;
    }

    public void setShow(boolean show) {
        isShow = show;
    }

    private Double priceNow;

    public void setPriceNow(Double priceNow) {
        this.priceNow = priceNow;
    }

    public Double getPriceNow() {
        if (priceNow == null)
            return price;
        else
            return priceNow;
    }

    private String id;
    private Object type;
    private String store_id;
    private String centerId;
    private String center_name;
    private String product_id;
    private Double price;
    private double status;
    private String create_time;
    private int cnt;
    private boolean updatePriceAuth;
    private List<ProductInfoBean> product;
    private ProductInfoBean productInfo;
    private String centerName;

    public String getCenterName() {
        return centerName;
    }

    public void setCenterName(String centerName) {

        this.centerName = centerName;
    }

    public List<ProductInfoBean> getProduct() {
        return product;
    }

    public void setProduct(List<ProductInfoBean> product) {
        this.product = product;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Object getType() {
        return type;
    }

    public void setType(Object type) {
        this.type = type;
    }

    public String getStore_id() {
        return store_id;
    }

    public void setStore_id(String store_id) {
        this.store_id = store_id;
    }

//    public String getMerchant_id() {
//        return merchant_id;
//    }
//
//    public void setMerchant_id(String merchant_id) {
//        this.merchant_id = merchant_id;
//    }


    public String getCenterId() {
        return centerId;
    }

    public void setCenterId(String centerId) {
        this.centerId = centerId;
    }

    public String getCenter_name() {
        return center_name;
    }

    public void setCenter_name(String center_name) {
        this.center_name = center_name;
    }

    public String getProduct_id() {
        return product_id;
    }

    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }

    public Double getPrice() {
        if (price == null)
            return 0.0;
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getStatus() {
        return status;
    }

    public void setStatus(double status) {
        this.status = status;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public int getCnt() {
        return cnt;
    }

    public void setCnt(int cnt) {
        this.cnt = cnt;
    }

    public boolean isUpdatePriceAuth() {
        return updatePriceAuth;
    }

    public void setUpdatePriceAuth(boolean updatePriceAuth) {
        this.updatePriceAuth = updatePriceAuth;
    }

    public ProductInfoBean getProductInfo() {
        return productInfo;
    }

    public void setProductInfo(ProductInfoBean productInfo) {
        this.productInfo = productInfo;
    }

    public static class ProductInfoBean {
        /**
         * tags : []
         * storeName : 天天鲜北环
         * species : null
         * modifiedTime : 2018-01-08 17:56:17
         * origin : null
         * moq : 1
         * pack :
         * type : 1
         * packageContainer : 散货
         * variety : null
         * packageSize : 1
         * id : 12211
         * title : 新疆葡萄干16
         * level : null
         * thumbnail : null
         * price : ¥1.0/斤
         * originalPrice : 1
         * inventory : null
         * merchantId : 1
         * incr : 1
         * packageUnit : 斤
         * storeId : 4
         * chargeUnit : 斤
         * priceOnly : 1
         */

        private boolean isShow;
        private boolean isHeader;
        private boolean isFooter;
        private String storeName;
        private String centerName;
        private Object species;
        private String modifiedTime;
        private Object origin;
        private double moq;
        private String pack;
        private double type;
        private String packageContainer;
        private Object variety;
        private String packageSize;
        private String id;
        private String title;
        private Object level;
        private String thumbnail;
        private double price;
        private Double originalPrice;
        private boolean jointEnabled;
        private String jointPriceFailureTime;
        private boolean failureTimeStatus;
        private Object inventory;
        private double merchantId;
        private double incr;
        private String packageUnit;
        private String storeId;
        private String chargeUnit;
        private double priceOnly;
        private List<?> tags;
        private int cnt;
        private String jointId;

        private double priceNow;
        private boolean updatePriceAuth;
        private String specName;

        public boolean isJointEnabled() {
            return jointEnabled;
        }

        public void setJointEnabled(boolean jointEnabled) {
            this.jointEnabled = jointEnabled;
        }

        public String getJointPriceFailureTime() {
            return jointPriceFailureTime;
        }

        public void setJointPriceFailureTime(String jointPriceFailureTime) {
            this.jointPriceFailureTime = jointPriceFailureTime;
        }

        public boolean isFailureTimeStatus() {
            return failureTimeStatus;
        }

        public void setFailureTimeStatus(boolean failureTimeStatus) {
            this.failureTimeStatus = failureTimeStatus;
        }

        public String getSpecName() {
            return specName;
        }

        public void setSpecName(String specName) {
            this.specName = specName;
        }

        public int getCnt() {
            return cnt;
        }

        public void setCnt(int cnt) {
            this.cnt = cnt;
        }

        public boolean isUpdatePriceAuth() {
            return updatePriceAuth;
        }

        public void setUpdatePriceAuth(boolean updatePriceAuth) {
            this.updatePriceAuth = updatePriceAuth;
        }

        public void setPriceNow(double priceNow) {
            this.priceNow = priceNow;
        }

        public double getPriceNow() {
            if (priceNow == 0)
                return price;
            else
                return priceNow;
        }

        public boolean isShow() {
            return isShow;
        }

        public void setShow(boolean show) {
            isShow = show;
        }

        public boolean isHeader() {
            return isHeader;
        }

        public void setHeader(boolean header) {
            isHeader = header;
        }

        public boolean isFooter() {
            return isFooter;
        }

        public void setFooter(boolean footer) {
            isFooter = footer;
        }

        public String getStoreName() {
            return storeName;
        }

        public void setStoreName(String storeName) {
            this.storeName = storeName;
        }

        public String getCenterName() {
            return centerName;
        }

        public void setCenterName(String centerName) {
            this.centerName = centerName;
        }

        public Object getSpecies() {
            return species;
        }

        public void setSpecies(Object species) {
            this.species = species;
        }

        public String getModifiedTime() {
            return modifiedTime;
        }

        public void setModifiedTime(String modifiedTime) {
            this.modifiedTime = modifiedTime;
        }

        public Object getOrigin() {
            return origin;
        }

        public void setOrigin(Object origin) {
            this.origin = origin;
        }

        public double getMoq() {
            return moq;
        }

        public void setMoq(double moq) {
            this.moq = moq;
        }

        public String getPack() {
            return pack;
        }

        public void setPack(String pack) {
            this.pack = pack;
        }

        public double getType() {
            return type;
        }

        public void setType(double type) {
            this.type = type;
        }

        public String getPackageContainer() {
            return packageContainer;
        }

        public void setPackageContainer(String packageContainer) {
            this.packageContainer = packageContainer;
        }

        public Object getVariety() {
            return variety;
        }

        public void setVariety(Object variety) {
            this.variety = variety;
        }

        public String getPackageSize() {
            return packageSize;
        }

        public void setPackageSize(String packageSize) {
            this.packageSize = packageSize;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public Object getLevel() {
            return level;
        }

        public void setLevel(Object level) {
            this.level = level;
        }

        public String getThumbnail() {
            return thumbnail;
        }

        public void setThumbnail(String thumbnail) {
            this.thumbnail = thumbnail;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public Double getOriginalPrice() {
            return originalPrice;
        }

        public void setOriginalPrice(Double originalPrice) {
            this.originalPrice = originalPrice;
        }

        public Object getInventory() {
            return inventory;
        }

        public void setInventory(Object inventory) {
            this.inventory = inventory;
        }

        public double getMerchantId() {
            return merchantId;
        }

        public void setMerchantId(double merchantId) {
            this.merchantId = merchantId;
        }

        public double getIncr() {
            return incr;
        }

        public void setIncr(double incr) {
            this.incr = incr;
        }

        public String getPackageUnit() {
            return packageUnit;
        }

        public void setPackageUnit(String packageUnit) {
            this.packageUnit = packageUnit;
        }

        public String getStoreId() {
            return storeId;
        }

        public void setStoreId(String storeId) {
            this.storeId = storeId;
        }

        public String getChargeUnit() {
            return chargeUnit;
        }

        public void setChargeUnit(String chargeUnit) {
            this.chargeUnit = chargeUnit;
        }

        public double getPriceOnly() {
            return priceOnly;
        }

        public void setPriceOnly(double priceOnly) {
            this.priceOnly = priceOnly;
        }

        public List<?> getTags() {
            return tags;
        }

        public void setTags(List<?> tags) {
            this.tags = tags;
        }

        public String getJoinId() {
            return jointId;
        }

        public void setJoinId(String joinId) {
            this.jointId = joinId;
        }
    }
}
